﻿@using System.Web.Optimization
@{
    ViewBag.Title = "ScrumPilot DashBoard";
}
@section HeadContent{
    <link href="@Url.Content("~/Content/Index.css")" rel="stylesheet" type="text/css" />
}
@section AddJavaScript
{
    @Scripts.Render("~/Index/")
    <script type="text/javascript">
        var myPage = new Index();
    </script>
}
@section JSDocumentReady
{
myPage.Ready();
}
@section PageOptionUrl
{
    '@Url.Action("getWallInfo", "Home")','@Url.Action("getWallInfoByDate", "Home")','@Url.Action("IndexWall", "Home")',
    '@Url.Action("KeyPoints", "Home")','@Url.Action("MainIndicator", "Home")','@Url.Action("WhoDoesWhat", "Home")',
    '@Url.Action("KeyIndicators", "Home")','@Url.Action("AddComment", "Home")','@Url.Action("DelComment", "Home")',
    '@Url.Action("BugsList", "Home")' 
}
@section PageOptionsOpt
{
elemProjectPoints: 'wilist',elemWdw: 'WDWDiv',elemKeys: 'keypointsdiv',elemBugsList: 'bugslist',elemReleaseBugList: 'releasebugslist'
    }
<div class="span4">
    <div class="row-fluid">
        <h3 class="smallmargeBottom" style="margin-top: 6px">Key Performance Indicators
        </h3>
        <div class="margeBottom" id="keypointsdiv"></div>
        <h3 class="smallmargeBottom">Burn Down
        </h3>
        <div class="margeBottom" id="bdGrph">
        </div>
        <h3 class="smallmargeBottom">Bugs List</h3>
        <div>
            <div id="glreleasebugslist" style="display: none" >
                <h4 style="color: red">Release
                </h4>
                <ul id="releasebugslist">
                </ul>
            </div>
            <div class="clear"></div>
            <div id="glbugslist" style="display: none">
                <h4>Developement
                </h4>
                <ul id="bugslist"></ul>
            </div>
        </div>
    </div>
</div>

<div class="span8 margeBottom">
    <h1 class="margeBottom" style="margin-bottom: 6px">Our Sprint &quot; <span id="sprintName"
        style="font-style: italic"></span>
        &quot;</h1>
    <table id="tbProjectKeys">
        <thead>
            <tr>
                <th class="project" rowspan="2">Project
                </th>
                <th rowspan="2" title="WorkItems done/Total">Tasks done / total
                </th>
                <th rowspan="2" title="Estimated time/Completed time">Score Completed / Estimated
                </th>
                <th rowspan="2" title=" % of Completed time">% completed
                </th>
                <th colspan="4" class="highlight lightFont">User Stories
                </th>
                <th rowspan="2" title="How many are working on">Workers
                </th>
            </tr>
            <tr class="thbottom">
                <th class="wiListTodo">To Do
                </th>
                <th class="wiListInProgress">In Progress <span id="kanbanipmax"></span>
                </th>
                <th class="wiListToTest">To Test <span id="kanbanttmax"></span>
                </th>
                <th class="wiListDone">Done
                </th>
            </tr>
        </thead>
        <tbody id="wilist">
        </tbody>
    </table>
</div>
<div class="span4">
    <h3 class="smallmargeBottom" id="lstActTitle">Last activities</h3>
    <ul id="WallList">
    </ul>
</div>
<div class="span4">
    <h3 class="smallmargeBottom">Who does what 
            <a style="font-size: 12px;" href="@Url.Action("UsersList", "User")">more...</a>
    </h3>
    <ul id="WDWDiv">
    </ul>
</div>

<div id="dialog-comments" title="Add a comment" style="display: none">
    <p>
        @Html.Label("comment", "Your comment")
        @Html.TextArea("comment", "", 5, 46, null)
    </p>
    <p>
        @Html.Label("mail", "Send by mail to owner ?")
        @Html.CheckBox("mail", false, new { @disabled = true, @title = "Not yet avalaible" })
    </p>
</div>
